/*
 * @Author: ailin
 * @Date: 2023-07-20 10:39:09
 * @LastEditors: ailin
 * @LastEditTime: 2023-07-28 20:48:53
 * @Description: file content
 * @FilePath: /pay_platform/src/assets/js/api/api.js
 */
import axios from "axios"
import jsonp from "@/request/jsonp.js"
import { uleUrl, uleCdn } from "../common"
export const systemTime = () => {
  return axios.get(`//clock.ule.com/now/?w=${new Date().getTime()}`)
}

// 获取验证码
export const getSmsCode = (params = "", val = "", callback = "") => {
  return jsonp(`https://m.${uleUrl()}/muser/user/pd/s`, params, val, callback)
}
// 设置支付密码
export const setPayWord = (params = "", val = "", callback = "") => {
  return jsonp(`https://m.${uleUrl()}/muser/user/pd/n`, params, val, callback)
}
// 修改支付密码
export const updatePayWord = (params = "", val = "", callback = "") => {
  return jsonp(`https://m.${uleUrl()}/muser/user/pd/u`, params, val, callback)
}
// 验证支付密码
export const verifyAccountSecurity = (params = "", val = "", callback = "") => {
  return jsonp(`https://m.${uleUrl()}/muser/user/pd/verifyAccountSecurity.do`, params, val, callback)
}
// 查询当前绑定手机号码
export const getMobileNum = (params = "", val = "", callback = "") => {
  return jsonp(`https://m.${uleUrl()}/muser/user/getMobileNum`, params, val, callback)
}
// 找回支付密码验证码发送
export const sendCodeReset = (params = "", val = "", callback = "") => {
  return jsonp(`https://m.${uleUrl()}/muser/user/pd/gc`, params, val, callback)
}
// 找回支付密码
export const resetPayPwd = (params = "", val = "", callback = "") => {
  return jsonp(`https://m.${uleUrl()}/muser/user/pd/rg`, params, val, callback)
}
